package com.baizhi.cmfz.entity;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serializable;
import java.util.Date;

public class Banner implements Serializable {

    private  Integer bannerId;//轮播图id
    private  String bannerImage;//轮播图路径
    private  String bannerOldName;//轮播图风景名称
    private  Integer bannerState;//轮播图状态0 显示 1.不显示 2.删除
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date bannerDate;//轮播图上传日期
    private  String bannerDescript;//轮播图描述

    public Integer getBannerId() {
        return bannerId;
    }

    @Override
    public String toString() {
        return "Banner{" +
                "bannerId=" + bannerId +
                ", bannerImage='" + bannerImage + '\'' +
                ", bannerOldName='" + bannerOldName + '\'' +
                ", bannerState=" + bannerState +
                ", bannerDate=" + bannerDate +
                ", bannerDescript='" + bannerDescript + '\'' +
                '}';
    }

    public Banner(Integer bannerId, String bannerImage, String bannerOldName, Integer bannerState, Date bannerDate, String bannerDescript) {
        this.bannerId = bannerId;
        this.bannerImage = bannerImage;
        this.bannerOldName = bannerOldName;
        this.bannerState = bannerState;
        this.bannerDate = bannerDate;
        this.bannerDescript = bannerDescript;
    }

    public Banner() {
    }

    public String getBannerImage() {
        return bannerImage;
    }

    public void setBannerImage(String bannerImage) {
        this.bannerImage = bannerImage;
    }

    public String getBannerOldName() {
        return bannerOldName;
    }

    public void setBannerOldName(String bannerOldName) {
        this.bannerOldName = bannerOldName;
    }

    public Integer getBannerState() {
        return bannerState;
    }

    public void setBannerState(Integer bannerState) {
        this.bannerState = bannerState;
    }

    public Date getBannerDate() {
        return bannerDate;
    }

    public void setBannerDate(Date bannerDate) {
        this.bannerDate = bannerDate;
    }

    public String getBannerDescript() {
        return bannerDescript;
    }

    public void setBannerDescript(String bannerDescript) {
        this.bannerDescript = bannerDescript;
    }

    public void setBannerId(Integer bannerId) {
        this.bannerId = bannerId;
    }
}
